﻿#include "base_ui.h"
#include <key_state.h>
#include <easy_str.h>
#include <netpacket.h>
#include <g_socket.h>
#include <player.h>

class ChoiceUI:public BaseUI
{
private:
	enum{TEXT_H=20};
	enum{ICON_INTER=6};
	enum{TEXT_COL = 10,TEXT_ROW=2};
public:
	enum{TYPE_TEAM, TYPE_TRADE};
	int type;

	Player* pPlayer;
	NetStream* pStream;

#ifdef _OGRE_3D_
	TextOverlay* pText ;
	TextOverlay* pTextA ;
	TextOverlay* pTextB ;
#endif

	long long uniqueID;
public:

	ChoiceUI();

	void init() ;

#ifdef _OGRE_3D_
	void update() ;
#endif

	void setType(NetStream* ns, int num, Player* pl);

	void setPosToClient(int clientW,int clientH);

	void beClick(int rmx, int rmy, KeyMan& keyMan);

	void draw(HDC hdc);

	void drawInfo(HDC hdc,int type,int dw1,int dw2);
};